﻿@model Providers
@section ToolBar{
    <div class="r-c-tool">
        <a href="javascript:location.reload();" class="l-btn fa fa-refresh"></a>
        <a href="javascript:void(0);" class="l-btn fa fa-search"></a>
    </div>
}
<div class="l-m-table">
    <table>
        <tr class="bgc3">
            <th>客户编号</th>
            <th>公司简称</th>
            <th>企业代码</th>
            <th>联系人</th>
            <th>地址</th>
            <th>应付款</th>
            <th>业务负责人</th>
            <th>财务备注</th>
            <th class="t-c">操作</th>
        </tr>
        @if (Model==null || Model.Items.Count <= 0) {
            <tr>
                <td colspan="9" class="t-c c0">暂无记录</td>
            </tr>
        }
        else
        {
            foreach (Provider e in Model.Items)
            {
                <tr>
                    <td>@Html.LActionLink(e.CompanyNo, "Detail", "Provider", new { id = e.ProviderId }, new { single = "single" })</td>
                    <td>@e.CompanyName</td>
                    <td>@e.CompanyCode</td>
                    <td>@e.ContactName</td>
                    <td>@e.Address</td>
                    <td class="red">@Html.LActionLink(e.AccountPayables.MoneyFormat(), "Receivables", "PurchaseOrderCapital", new { providerId = e.ProviderId }, new { single= "single" }) </td>
                    <td>@e.Employee.EmployeeName</td>
                    <td>@e.FinanceRemark</td>
                    <td>
                        @Html.LActionLink("付款", "Receivables", "PurchaseOrderCapital", new { providerId = e.ProviderId }, new { single = "single" })
                        @Html.LActionLink("修改备注", "EditRemark", "PurchaseOrderCapital", new { id = e.ProviderId }, new { single = "single" })
                    </td>
                </tr>
            }
        }
    </table>
</div>
@section Pager{
    @Html.Pager("Index", "PurchaseOrderCapital", Model.TotalCount, (int)ViewBag.PageIndex, 20)
}